package cn.oveay.classdesign.bean.basebean;

import java.io.Serializable;

public class User implements Serializable {
    public static final int OFFLINE=1;
    public static final int ONLINE=2;
    private String id;
    private String name;
    private String pwd;
    private String nickname;
    private Integer online;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public User() {
    }

    public User(String id, String name, String pwd, String nickname, Integer online) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.nickname = nickname;
        this.online = online;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ", nickname='" + nickname + '\'' +
                ", online=" + online +
                '}';
    }
}
